const mongoose = require('mongoose')

const fileSchema = new mongoose.Schema({
  path: {
    type: String,
    required: true
  },
  name: {
    type: String,
    required: true
  },
  deleted: {
    type: Boolean,
    required: true,
    default: () => false
  }
})

const fileModel = mongoose.model('File', fileSchema)

module.exports = fileModel